//
//  RootClassOfDoingTest.m
//  __PRODUCTNAME__
//
//  Created by li cheng on 16/09/08
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "RootClassOfDoingTest.h"
#import "DataOfDoingTest.h"

@implementation RootClassOfDoingTest

+ (NSDictionary *)objectClassInArray{
    return @{@"data" : [DataOfDoingTest class]};
}

- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"data"]) {
        NSMutableArray<DataOfDoingTest *> *mArrayOfDataOfDoingTest = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            DataOfDoingTest *dataOfDoingTest = [DataOfDoingTest modelDic:dic];
            [mArrayOfDataOfDoingTest addObject:dataOfDoingTest];
        }
        _data = mArrayOfDataOfDoingTest;
    }
}
@end
